<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other"></template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">
            <!-- <el-form-item>
                <el-input clearable v-model="mixinTable_tableSearchData.name" placeholder="请输入等级名称"
                    @change="mixinTable_searchData" style="width:200px">
                    <el-button slot="append" icon="el-icon-search" @click="mixinTable_searchData()"></el-button>
                </el-input>
            </el-form-item> -->
        </el-form>


    </template>
    <!-- 功能 -->
    <template slot="function">
        <el-button type="primary" @click="editBoxOpen({type:'add'})">新增等级</el-button>
    </template>
    <!-- 表格 -->
    <template slot="table">
        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData.list" border style="width: 100元;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%"
            @selection-change="mixinTable_handleSelectionChangeTableSmall" :tree-props="{children: 'children'}"
            default-expand-all row-key="id">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column prop="name" label="等级名称">
            </el-table-column>
            <el-table-column prop="level_weight" label="等级权重">
                <template slot-scope="scope">
                    <div>{{ scope.row.level_weight }}级</div>
                </template>
            </el-table-column>
            <el-table-column prop="deduct_ratio" label="分红比例(%)">
            </el-table-column>
            <el-table-column prop="educate_ratio" label="育人奖比例(%)">
            </el-table-column>
            <el-table-column prop="equal_ratio" label="平级奖比例(%)">
            </el-table-column>
            <el-table-column prop="grade_ratio" label="感恩奖(元)">
            </el-table-column>
            <el-table-column prop="transcend_ratio" label="超越奖比例(%)">
            </el-table-column>
            <el-table-column prop="transcend_ratio" label="状态" align="center">
                <template slot-scope="scope">
                    <StateIcon :type="scope.row.disable == 0 ? 'success' : 'error'"></StateIcon>
                </template>
            </el-table-column>
            <el-table-column label="操作" width="250">
                <template slot-scope="scope">
                    <el-button @click="editBoxOpen({type:'update',id:scope.row.id})">编辑</el-button>
                    <template v-if="scope.row.level_weight != 0">
                        <el-button @click="enable(scope.row.id,scope.row.disable)" v-if="scope.row.disable == 0">禁用</el-button>
                        <el-button @click="enable(scope.row.id,scope.row.disable)" v-if="scope.row.disable == 1">启用</el-button>
                        <el-button type="danger" plain @click="del(scope.row.id, scope.row)">删除</el-button>
                    </template>
                </template>
            </el-table-column>


        </el-table>

    </template>
    <!-- 表格选项 -->
    <!-- <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button>
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template> -->
    <!-- 分页 -->
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>